const state = {
  showSearch: false // 显示搜索界面
}

const mutations = {
  'SHOW_SEARCH' (state) {
    state.showSearch = true
  },
  'HIDE_SEARCH' (state) {
    state.showSearch = false
  }
}

const actions = {
  showSearch ({ commit }) {
    commit('SHOW_SEARCH')
  },
  hideSearch ({ commit }) {
    commit('HIDE_SEARCH')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
